<template>
  <div>
    <svg v-bind="props">
      <use :href="symbolId" :aria-hidden="true" :fill="color"></use>
    </svg>
  </div>
</template>

<script lang="ts" setup>
  import { computed } from "vue";

  const props = defineProps<{
    name: string;
    color: string;
  }>();

  const symbolId = computed(() => {
    return `#icon-${props.name}`;
  });
</script>

<style lang="scss" scoped></style>
